package com.unknow.first.dapp.admin.account.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.math.BigDecimal;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface FlashSwapRecordMapper extends BaseMapper<FlashSwapRecord> {

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(FlashSwapRecord record);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(FlashSwapRecord record);

    int updateBatch(List<FlashSwapRecord> list);

    int batchInsert(@Param("list") List<FlashSwapRecord> list);

    BigDecimal queryTotalSwap(@Param("toCoinId") Integer toCoinId, @Param("address") String address);
}